Optimal. Leaf size=177 \[ -\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {3 e^2 (2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 177, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {752, 793, 635,
212} \begin {gather*} \frac {e \sqrt {a+b x+c x^2} \left (-2 c e (4 a e+3 b d)+3 b^2 e^2+2 c e x (2 c d-b e)+8 c^2 d^2\right )}{c^2 \left (b^2-4 a c\right )}-\frac {2 (d+e x)^2 (-2 a e+x (2 c d-b e)+b d)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {3 e^2 (2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 752
Rule 793
Rubi steps
\begin {align*} \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx &=-\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}-\frac {2 \int \frac {(d+e x) (-2 e (b d-2 a e)-2 e (2 c d-b e) x)}{\sqrt {a+b x+c x^2}} \, dx}{b^2-4 a c}\\ &=-\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {\left (3 e^2 (2 c d-b e)\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{2 c^2}\\ &=-\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {\left (3 e^2 (2 c d-b e)\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{c^2}\\ &=-\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {3 e^2 (2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.81, size = 198, normalized size = 1.12 \begin {gather*} \frac {\frac {2 \sqrt {c} \left (-3 b^3 e^3 x-b^2 e^2 (3 a e+c x (-6 d+e x))+2 b c \left (c d^2 (d-3 e x)+a e^2 (3 d+5 e x)\right )+4 c \left (2 a^2 e^3+c^2 d^3 x+a c e \left (-3 d^2-3 d e x+e^2 x^2\right )\right )\right )}{\sqrt {a+x (b+c x)}}-3 \left (b^2-4 a c\right ) e^2 (-2 c d+b e) \log \left (c^2 \left (b+2 c x-2 \sqrt {c} \sqrt {a+x (b+c x)}\right )\right )}{2 c^{5/2} \left (-b^2+4 a c\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(408\) vs.
\(2(163)=326\).
time = 0.93, size = 409, normalized size = 2.31
method | result | size |
default | \(e^{3} \left (\frac {x^{2}}{c \sqrt {c \,x^{2}+b x +a}}-\frac {3 b \left (-\frac {x}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}+\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right )}{c^{\frac {3}{2}}}\right )}{2 c}-\frac {2 a \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{c}\right )+3 d \,e^{2} \left (-\frac {x}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}+\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right )}{c^{\frac {3}{2}}}\right )+3 d^{2} e \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )+\frac {2 d^{3} \left (2 c x +b \right )}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\) | \(409\) |
risch | \(\frac {e^{3} \sqrt {c \,x^{2}+b x +a}}{c^{2}}+\frac {3 x \,e^{3} b}{2 c^{2} \sqrt {c \,x^{2}+b x +a}}-\frac {3 x d \,e^{2}}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b^{2} e^{3}}{4 c^{3} \sqrt {c \,x^{2}+b x +a}}+\frac {3 b d \,e^{2}}{2 c^{2} \sqrt {c \,x^{2}+b x +a}}-\frac {b^{3} x \,e^{3}}{2 c^{2} \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}+\frac {3 b^{2} x d \,e^{2}}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}-\frac {b^{4} e^{3}}{4 c^{3} \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}+\frac {3 b^{3} d \,e^{2}}{2 c^{2} \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}-\frac {3 \ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right ) e^{3} b}{2 c^{\frac {5}{2}}}+\frac {3 \ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right ) d \,e^{2}}{c^{\frac {3}{2}}}+\frac {a \,e^{3}}{c^{2} \sqrt {c \,x^{2}+b x +a}}-\frac {3 d^{2} e}{c \sqrt {c \,x^{2}+b x +a}}-\frac {6 b x \,d^{2} e}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}-\frac {3 b^{2} d^{2} e}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}+\frac {4 c \,d^{3} x}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}+\frac {2 d^{3} b}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\) | \(492\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 350 vs.
\(2 (170) = 340\).
time = 3.19, size = 703, normalized size = 3.97 \begin {gather*} \left [\frac {3 \, {\left ({\left (a b^{3} - 4 \, a^{2} b c + {\left (b^{3} c - 4 \, a b c^{2}\right )} x^{2} + {\left (b^{4} - 4 \, a b^{2} c\right )} x\right )} e^{3} - 2 \, {\left ({\left (b^{2} c^{2} - 4 \, a c^{3}\right )} d x^{2} + {\left (b^{3} c - 4 \, a b c^{2}\right )} d x + {\left (a b^{2} c - 4 \, a^{2} c^{2}\right )} d\right )} e^{2}\right )} \sqrt {c} \log \left (-8 \, c^{2} x^{2} - 8 \, b c x - b^{2} + 4 \, \sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {c} - 4 \, a c\right ) - 4 \, {\left (4 \, c^{4} d^{3} x + 2 \, b c^{3} d^{3} - {\left (3 \, a b^{2} c - 8 \, a^{2} c^{2} + {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} x^{2} + {\left (3 \, b^{3} c - 10 \, a b c^{2}\right )} x\right )} e^{3} + 6 \, {\left (a b c^{2} d + {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d x\right )} e^{2} - 6 \, {\left (b c^{3} d^{2} x + 2 \, a c^{3} d^{2}\right )} e\right )} \sqrt {c x^{2} + b x + a}}{4 \, {\left (a b^{2} c^{3} - 4 \, a^{2} c^{4} + {\left (b^{2} c^{4} - 4 \, a c^{5}\right )} x^{2} + {\left (b^{3} c^{3} - 4 \, a b c^{4}\right )} x\right )}}, \frac {3 \, {\left ({\left (a b^{3} - 4 \, a^{2} b c + {\left (b^{3} c - 4 \, a b c^{2}\right )} x^{2} + {\left (b^{4} - 4 \, a b^{2} c\right )} x\right )} e^{3} - 2 \, {\left ({\left (b^{2} c^{2} - 4 \, a c^{3}\right )} d x^{2} + {\left (b^{3} c - 4 \, a b c^{2}\right )} d x + {\left (a b^{2} c - 4 \, a^{2} c^{2}\right )} d\right )} e^{2}\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{2} + b c x + a c\right )}}\right ) - 2 \, {\left (4 \, c^{4} d^{3} x + 2 \, b c^{3} d^{3} - {\left (3 \, a b^{2} c - 8 \, a^{2} c^{2} + {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} x^{2} + {\left (3 \, b^{3} c - 10 \, a b c^{2}\right )} x\right )} e^{3} + 6 \, {\left (a b c^{2} d + {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d x\right )} e^{2} - 6 \, {\left (b c^{3} d^{2} x + 2 \, a c^{3} d^{2}\right )} e\right )} \sqrt {c x^{2} + b x + a}}{2 \, {\left (a b^{2} c^{3} - 4 \, a^{2} c^{4} + {\left (b^{2} c^{4} - 4 \, a c^{5}\right )} x^{2} + {\left (b^{3} c^{3} - 4 \, a b c^{4}\right )} x\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d + e x\right )^{3}}{\left (a + b x + c x^{2}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.80, size = 233, normalized size = 1.32 \begin {gather*} \frac {{\left (\frac {{\left (b^{2} c e^{3} - 4 \, a c^{2} e^{3}\right )} x}{b^{2} c^{2} - 4 \, a c^{3}} - \frac {4 \, c^{3} d^{3} - 6 \, b c^{2} d^{2} e + 6 \, b^{2} c d e^{2} - 12 \, a c^{2} d e^{2} - 3 \, b^{3} e^{3} + 10 \, a b c e^{3}}{b^{2} c^{2} - 4 \, a c^{3}}\right )} x - \frac {2 \, b c^{2} d^{3} - 12 \, a c^{2} d^{2} e + 6 \, a b c d e^{2} - 3 \, a b^{2} e^{3} + 8 \, a^{2} c e^{3}}{b^{2} c^{2} - 4 \, a c^{3}}}{\sqrt {c x^{2} + b x + a}} - \frac {3 \, {\left (2 \, c d e^{2} - b e^{3}\right )} \log \left ({\left | -2 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} \sqrt {c} - b \right |}\right )}{2 \, c^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^3}{{\left (c\,x^2+b\,x+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________